//
// Created on 2024/4/21.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#include "thread.h"
#include <thread>

uint64_t getThreadID() {
    auto tid = std::this_thread::get_id();
    return ((uint64_t *)(void *)&tid)[0];
}